package com.csair.seam.domain.model.param;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel
@Data
@EqualsAndHashCode(callSuper=false)
public class IdleReceiveParam extends AbstractPageParam{

	@ApiModelProperty(value="id")
	private Integer id;
	
    @ApiModelProperty(value="原公司")
	private String outcorp;
	
    @ApiModelProperty(value="原使用部门")
	private String outdept;
	
    @ApiModelProperty(value="接收公司")
	private String incorp;
    
    @ApiModelProperty(value="接收使用部门")
	private String indept;
	
    @ApiModelProperty(value="处置方式")
	private String intype;
	
    @ApiModelProperty(value="设备大类")
	private String category;
	
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
   // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   // @Column(name = "create_time")
    @ApiModelProperty(value="成交日期")
	private String dealDate;

	@ApiModelProperty(value="成交开始日期")
	private String startDealDate;

	@ApiModelProperty(value="成交结束日期")
	private String endDealDate;
	
    @ApiModelProperty(value="成交额")
	private BigDecimal insum;
	
    @ApiModelProperty(value="经办人")
	private String operator;
	
    @ApiModelProperty(value="联系方式")
	private String phonenumber;
	
    @ApiModelProperty(value="租期")
	private Integer rentLen;
	
    @ApiModelProperty(value="确认人")
	private String confirman;
	
    @ApiModelProperty(value="对应NCC设备编码")  
	private String equipcodes;
	
    @ApiModelProperty(value="品牌")
	private String  equipBrand;
	
    @ApiModelProperty(value="型号")
	private String equipModel;
	
    @ApiModelProperty(value="使用年限")
	private Integer usedyear;
	
    @ApiModelProperty(value="交易数量")
	private Integer receivnum;
	
    @ApiModelProperty(value="操作人")
	private String creator;
	
    @ApiModelProperty(value="操作时间")
	private String creaTime;
	
	@ApiModelProperty(value="展示id")
	private Integer showId;

	private List<String> intypes = new ArrayList<>();

	private List<String> categorys = new ArrayList<>();


	public List<String> getIntypes(){
		intypes.add("内部交易（二级机构之间）");
		intypes.add("机务工具（二级机构内部）");
		intypes.add("对外出租");
		intypes.add("对外出售");
		intypes.add("报废处置");
		intypes.add("其他");
		return intypes;
	}

	public List<String> getCategorys(){
		intypes.add("机务工具");
		intypes.add("IT设备");
		intypes.add("普通车辆");
		intypes.add("特种车辆");
		intypes.add("其他");
		return categorys;
	}
}
